package com.dlc.yunguang.model;

import com.dlc.yunguang.model.intfc.ProductInfo;

/**
 * Created by John on 2017/7/21.
 */

public class ProductInfoImpl implements ProductInfo {

    private String rfid;
    private String name;
    private String category;
    private int length;
    private int width;
    private String where;

    public ProductInfoImpl() {
    }

    public ProductInfoImpl(String rfid, String name, String category, int length, int width,
        String where) {
        this.rfid = rfid;
        this.name = name;
        this.category = category;
        this.length = length;
        this.width = width;
        this.where = where;
    }

    @Override
    public String getRFID() {
        return rfid;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getSpec() {
        return category + " " + length + "*" + width;
    }

    @Override
    public String getWhere() {
        return where;
    }
}
